package com.spring.boot.reponse;

/**
 * 应用系统级别的错误码
 * Created by ensure.xu on 2017/11/24.
 */
public enum ErrorInfoEnum implements ErrorInfoInterface {

	SUCCESS("SUCCESS", "200", "处理成功"),

	ERROR_PARAM_NOT_EXSITS("ERROR","501","必填参数 %s缺失"),

	ERROR_Login001("ERROR","400","%s 不存在,请找管理员帮你解决！"),
	ERROR_Login002("ERROR","401","密码不匹配。"),
	ERROR_Login003("ERROR","402","用户被锁定，请找管理员解决。"),

	ERROR_UNKNOWN("ERROR", "500", "未知错误"),

	ERROR_IMPORT("ERROR", "501", "导入失败");


	
	private String Result;

	private String Code;

	private String Message;

	ErrorInfoEnum(String Result, String Code, String Message) {
		this.Result = Result;
		this.Code = Code;
		this.Message = Message;

	}

	@Override
	public String getResult() {
		return Result;
	}

	public void setResult(String result) {
		Result = result;
	}

	@Override
	public String getCode() {
		return Code;
	}

	public void setCode(String code) {
		Code = code;
	}

	@Override
	public String getMessage() {
		return Message;
	}

	public void setMessage(String message) {
		Message = message;
	}

}